package com.example.guiadigital4;

import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.widget.GridView;

public class PorTipos extends Activity {

    @Override
       public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_por_tipos);

        GridView gridview = (GridView) findViewById(R.id.gridview);
        gridview.setAdapter(new ImageAdapter(this));

     //    gridview.setOnItemClickListener(new OnItemClickListener() {
     //       public void onItemClick(AdapterView<?> parent, View v, int position, long id) {
     //            Toast.makeText(HelloGridView.this, "" + position, Toast.LENGTH_SHORT).show();
     //          }
     //  });
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.activity_por_tipos, menu);
        return true;
    }
}
